home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Univers Mac Interactif 42
/
Univers Mac Interactif - Issue 42.iso
/
Internet
/
MacHTTP 2.0
/
MacHTTP Software & Docs
/
MacHTTP.config
< prev
next >
Wrap
Text File
|
1994-12-18
|
6KB
|
150 lines
#MacHTTP Configuration file, v. 2.0
#
#The format of this file is free form, with a few exceptions. Lines not
#starting with a recognized keyword are ignored.
#Note, all entries are converted to upper case by MacHTTP, so the config file isn't
#case sensitive, with the exception of Mac file types and creators below.
#Note that any text styles like bold or underline in this file are purely cosmetic
# and are only intended to make the file easier to read. The styles are not required.
#Legal config file keywords will appear as BOLD text if this file is viewed with
# SimpleText or TeachText.
# The version number below must match MacHTTP's version number
VERSION 2.0
######################################################
# "Special" Files
#
#The following line defines the default file type if a suffix match isn't found.
#The syntax is: DEFAULT <default transfer type> <default MIME type>
DEFAULT TEXT text/html
#The following lines specify where to find HTML files for error messages, the
#default home (or index) page, the name of the log file, and the message
#returned for security violations. Any of these three file directives point to a
#HTML document, script, or CGI application.
#
#NOTE!!! INDEX must be a simple file name, not a path like the other files.
INDEX Default.html
ERROR :Error.html
NOACCESS :NoAccess.html
#If the LOG file directive is missing or commented out, no logging will occur.
LOG :MacHTTP.log
####################################################
# The following commands can be used to adjust MacHTTP's behavior and
# performance. Most of them can be adjusted via AppleScript and AppleEvents
# as well.
#Sets the timeout for inactive connections to 60 seconds
TIMEOUT 60
#Sets the max number of simultaneous users to 10.
#The minimum value is 3, the maximum is 48
#For larger values, you should monitor memory usage and increase
#MacHTTP's memory allocation in the Finder accordingly.
MAXUSERS 10
#Sets the number of "listens" MacHTTP performs simultaneously. For
#busy servers with clients that report "Unable to connect" errors,
#this number should be increased. If the "Listening" statistic in
#the status window ever drops to 1, some clients may miss connecting.
#Default is 5, minimum is 3, maximum is 48. Never set the number of
# listens to be more than the MAXUSERS!
MAXLISTENS 6
#A single copy of MacHTTP only listens on a single port for multiple
#connections. The HTTP standard port is 80. Users may define any port
#they'd like to listen on, but internet standards say that ports
#numbered 1024 and below are reserved for "Well known services" that
#are pre-defined. That means if you change MacHTTP's port from 80,
#you should pick a number greater than 1024 to avoid conflicting with
#things like telnet, gopher, ftp, nfs, pop, etc. that all have ports
#assigned below 1024.
PORT 80
# This is the number of ticks that MacHTTP will "steal" from other processes while
# sending data to clients. This equates directly to how much time MacHTTP will spend
# processing connections. Your Mac will effectively be dedicated to MacHTTP for this
# period of time. The argument is in "ticks", which are 60ths of a second. The default
# is .5 seconds. (30 ticks) Values can range between 0 and 120.
PIG_DELAY 30
# This is the chunk size that MacHTTP will divide file transfers into. The larger the
# chunk, the longer it will take to transmit over slow connections. The smaller it is, the
# more times MacHTTP will be able to swap between servicing multiple connections and
# freeing the Mac to work on other processes. The argument represents the max number of
# bytes to be sent in a single MacTCP write to the client. The min is 256, the max is 10240.
DUMP_BUF_SIZE 4096
# MacHTTP can be configured to eliminate DNS accesses. For best performance,
# uncomment the following line. MacHTTP will log IP addresses rather than
# host names, but the software will perform much faster when used with
# slow domain name servers.
#NO_DNS
#####################################################
#These lines define the suffix and file type mappings for MIME types.
#The syntax is <type> <suffix> <mac file type> <mac creator> <mime type>
#
#Unspecified parameters should be replaced with "*". MacHTTP tries to match
#a file suffix first. Failing that, it tries to match Mac file type info, and if it
#can, Mac creator info as well. Matching either suffix or type/creator determines
#the transfer type and MIME type. If the client supports HTTP/1.0, the appropriate
#MIME header will be constructed and returned, based on the info below.
#Scripts are responsible for generating their own HTTP/1.0 headers!!!
TEXT .HTML TEXT * text/html
BINARY .GIF GIFf * image/gif
CGI .CGI APPL * text/html
ACGI .ACGI APPL * text/html
SCRIPT .SCRIPT TEXT * text/html
SCRIPT * TEXT ToyS text/html
APPL .EXE APPL * text/html
TEXT .TEXT TEXT * text/plain
TEXT .TXT TEXT * text/plain
TEXT .HQX TEXT * application/mac-binhex40
BINARY .JPG JPEG * image/jpeg
BINARY .JPEG JPEG * image/jpeg
BINARY .PICT PICT * image/pict
BINARY .AU * * audio/basic
BINARY .AIFF * * audio/x-aiff
BINARY .XBM * * image/x-xbm
BINARY .MOV MOOV * video/quicktime
BINARY .MPEG MPEG * video/mpeg
BINARY .WORD WDBN MSWD application/msword
BINARY .XL XLS3 * application/excel
BINARY .SIT SITD * application/x-stuffit
BINARY .PDF PDF%20 * application/pdf
#####################################################
# Security configuration
#
# Security realms - see the Security tutorial for more details
#REALM workers Co-Workers
#REALM cust Customers
#IP and domain name security. There is an implied "DENY *" that is evaluated
#prior to any address security specifications if they are present. Otherwise, the default is
#an implied "ALLOW *". End complete host IP addresses with a "." for an exact match.
#Otherwise a statement like "ALLOW 129.106.3" would match hosts 129.106.30.*,
#129.106.31.*, 129.106.32.*, etc.
#
#You may also specify domain names for ALLOW and DENY statements.
#The domain names are matched from right to left, as opposed to the
#left to right matches done for IP address ALLOW and DENY statements. Also, the
#domain names you specify are case-sensitive and MUST end with a period (.).
#For example:
# ALLOW abc.edu.
# DENY mac22.abc.edu.
#would deny all hosts (implicit DENY *), allow any abc.edu node, and deny the
#specific host, mac22.abc.edu.
#NOTE!!! "ALLOW *" and "DENY *" are not valid syntax!
#ALLOW 123.45.6.
#DENY 123.45.6.7.